//
//  PersonModel.h
//  regularExpression
//
//  Created by leiyan on 2017/4/19.
//  Copyright © 2017年 leiyan. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef NS_ENUM(NSInteger,  PersonSex) {
    PersonSexMale = 0,
    PersonSexFamale
};

@interface PersonModel : NSObject
/** NSString 姓名 */
@property (nonatomic, copy) NSString *name;
/** NSUInteger 年龄 */
@property (nonatomic, assign, readonly) NSUInteger age;
/** PersonSex 性别 */
@property (nonatomic, assign, readonly) PersonSex sex;

+ (instancetype)personWithName:(NSString *)name age:(NSUInteger)age sex:(PersonSex)sex;
@end
